<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>

<div  style="text-align: center">
    <table class="list">
        <a th:href="@{/yuan/ad}">添加</a>
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>性别</th>
            <th>生日</th>
            <th>入职时间</th>
            <th>学历</th>
            <th>电话</th>
            <th>部门</th>
            <th>职务</th>
            <th>操作</th>
        </tr>
        <tr th:each="xue : ${list}">
            <td th:text="${xue.id}"></td>
            <td th:text="${xue.name}"></td>
            <td th:text="${xue.sex}"></td>
            <td th:text="${#dates.format(xue.birth,'yyyy-MM-dd')}"></td>
            <td th:text="${#dates.format(xue.ru,'yyyy-MM-dd')}"></td>
            <td th:text="${xue.xue}"></td>
            <td th:text="${xue.phone}"></td>
            <td th:text="${xue.dname}"></td>
            <td th:text="${xue.pname}"></td>
            <td>
                <a th:href="@{/yuan/findBy(id=${xue.id})}">修改</a>
                <a th:href="@{/yuan/delete(id=${xue.id})}">删除</a>
            </td>
        </tr>
    </table>
</div>

</body>
</html>